package com.chinasoft.ecommerceconsumptionanalysissystem.service.impl;

import com.chinasoft.ecommerceconsumptionanalysissystem.mapper.CategoryBySexMapper;
import com.chinasoft.ecommerceconsumptionanalysissystem.pojo.CategoryBySex;
import com.chinasoft.ecommerceconsumptionanalysissystem.service.CategoryBySexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryBySexServiceImpl implements CategoryBySexService {
    @Autowired
    private CategoryBySexMapper categoryBySexMapper;

    @Override
    public List<CategoryBySex> selectAll() {
        return categoryBySexMapper.selectAll();
    }

    @Override
    public int insert(CategoryBySex categoryBySex) {
        return categoryBySexMapper.insert(categoryBySex);
    }
}
